import { type IauthorsList } from '@/components/juejinSkeletonAuthors.vue'
import { getRandomInt } from '@/utils/getRandomInt'

export function getAuthorsList() {
  return new Promise<IauthorsList[]>(resolve => {
    setTimeout(
      () => {
        resolve([
          {
            title: '程序员飞鱼',
            imgName: 'tx1.image',
            description: '后端工程师 @美团',
          },
          {
            title: 'Moment',
            imgName: 'tx2.image',
            description: '辣鸡前端',
          },
          {
            title: '恋猫de小郭',
            imgName: 'tx3.image',
            description: 'Flutter & Dart GDE @🏆 掘金签约作者',
          },
          {
            title: '机器之心',
            imgName: 'tx4.image',
            description: '@机器之心',
          },
          {
            title: '豆包MarsCode',
            imgName: 'tx5.image',
            description: '作者暂无简介',
          },
        ])
      },
      getRandomInt(1, 2000),
    )
  })
}
